<!doctype html>
<html lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>仓库进出记录</title>
	<script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
	<link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div class="div_head">
		<span>
			<span style="float: left;">当前位置是：仓库管理 >></span><span>仓库进出记录</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('Excel/get_l_l')}">【导出进出记录】</a>
			</span>
		</span>
	</div>
	<div style="font-size: 13px; margin: 10px 5px;padding:0 20px;">
		<p class="hd-title-header">按货物名称查找</p>
		<div style="padding:15px;">
		<form method="get" action="__SELF__">
		<input type="hidden" name="p" value="1" />
		<input type="hidden" name="b_id" value="0" />
		输入货物名称：<input type="text" name="g_name" value="<?php echo I('get.g_name'); ?>" class="hd-w250 hd-h40" />
		<input type="submit" value="查找" class="hd-btn hd-btn-primary"/>
		</form>
		</div>
		<p class="hd-title-header">按所属仓库查找</p>
		<dl class="w_bm_l" >
			<volist name="c_list" id="b">
				<if condition="$b['level'] eq 1">
				<dt><a href="{:U('wlog',array('b_id'=>$b['id']))}">{$b.name}</a></dt>
				<else />
				<dd><a href="{:U('wlog',array('b_id'=>$b['id']))}">{$b.name}</a></dd>
				</if>
			</volist>
		</dl>
	</div>
	<div style="font-size: 13px; margin: 10px 5px;padding:0 20px;clear:both" class="hd-menu-list">
		<div class="hd-page">
			{$page}
		</div>
		<table class="hd-table hd-table-list">
			<thead>
				<tr style="font-weight: bold;">
					<td>货物名称</td>
					<td class="hd-w80">所属仓库</td>
					<td class="hd-w50">货物单位</td>
					<td class="hd-w80">货物单个重量</td>
					<td class="hd-w50">出入行为</td>
					<td>出入原因</td>
					<td class="hd-w50">出入数量</td>
					<td class="hd-w50">审核状态</td>
					<td class="hd-w80">审核时间</td>
					<td class="hd-w50">申请人</td>
					<td class="hd-w50">审核人</td>
					<td class="hd-w50">操作</td>
				</tr>
			</thead>
			<tbody>
				<volist name='log_l' id='v'>
				<tr id="product1">
					<td>{$v.g_name}</td>
					<td>{$v.name}</td>
					<td>{$v.dw_name}</td>					
					<td><if condition="$v['g_zl'] eq 0 ">未知<else />{$v.g_zl}kg</if></td>
					<td><if condition="$v['aid'] eq 1">入库<else />出库</if></td>
					<td>{$v.a_info}</td>
					<td>
						<if condition="$v['aid'] eq 1">
							{$v.gcount}
						<else />
							<span class="red">{$v.gcount}</span>
						</if>
					</td>
					<td>
						<if condition="$v['ischeck'] eq 1">
							<a href="{:U('wlog',array('b_id'=>$v['ischeck']))}">已通过</a>
						<else />
							<a href="{:U('wlog',array('b_id'=>$v['ischeck']))}"><span class="red">已拒绝</span></a>
						</if>
					</td>
					<td>{$v.c_time|date="Y-m-d",###}</td>
					<td>{$v.doer}</td>
                    <td>{$v.checker}</td>
                    <td><a onclick="if (confirm('确定要删除吗？')) return true; else return false;" href="{:U('delete',array('lid' => $v['lid']))}">删除</a></td>
				</tr>
				</volist>
			</tbody>
		</table>
		<div class="hd-page">
			{$page}
		</div>
	</div>
</body>
</html>